-
Notifications
You must be signed in to change notification settings - Fork 20
Fix: Remove expected error message #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of
phpstan-deprecation-rules/src/Rules/Deprecations/CallToDeprecatedStaticMethodRule.php
Lines 43 to 45 in 1ed86a5
and
Lines 13 to 19 in 1ed86a5
and
phpstan-deprecation-rules/tests/Rules/Deprecations/data/call-to-deprecated-static-method.php
Lines 18 to 22 in 1ed86a5
we never enter the scope of the deprecated method Bar::deprecatedFoo().
Ah, I didn't realize deprecatedFoo() was overwritten. Since 0.11 phpDoc annotations are implicitly inherited. Since the method itself is now deprecated the error message goes away. I think this is ok.
@ondrejmirtes Do you agree?
Thanks π
Thank you, @iluuu1994!
This PR
Follows 1ed86a5.
πββοΈ Not sure if instead the
CallToDeprecatedStaticMethodRuleshould be fixed. What do you think?